package cn.sirun.com.fca.account.model.login;

import com.google.gson.annotations.SerializedName;

/**
 * @author vinsonhuang
 * @date 2018/8/25
 */
public class AuthenticateResponse extends LoginResponse {

    /**
     * 服务端的置信证明 客户端需要校验
     */
    @SerializedName("M")
    private String evidenceMessage;

    public AuthenticateResponse() {
    }

    public AuthenticateResponse(int appId, String identifier, String userSig,
                                int accType, String publicConfidenceProve) {
        super(appId, identifier, userSig, accType);
        this.evidenceMessage = publicConfidenceProve;
    }

    public String getEvidenceMessage() {
        return evidenceMessage;
    }

    public void setEvidenceMessage(String evidenceMessage) {
        this.evidenceMessage = evidenceMessage;
    }

    @Override
    public String toString() {
        return "AuthenticateResponse{" +
                "evidenceMessage='" + evidenceMessage + '\'' +
                ", appId=" + appId +
                ", identifier='" + identifier + '\'' +
                ", userSig='" + userSig + '\'' +
                ", accType=" + accType +
                '}';
    }
}
